<?php

namespace app\index\controller;

use think\Controller;
use think\Session;
use think\Db;

class Logout extends Controller
{
	public function index(){
		Session::delete('Username');
		Session::delete('UserId');
		if(!Session::has('Username')||!Session::has('UserId')){
			$this->success('退出登陆成功!','index');
			// return json(['data'=>'退出登陆成功!'],200);
		}
	}
}
